#!/usr/local/bin/python
import os
import cherrypy
from wsgi.taobao.wsgi_taobao import * 

root = Taobao()

application = cherrypy.tree.mount(root, "/taobao")
try:
	cherrypy.engine.start(blocking=False)
finally:
	pass;

def start():
	'''
	cherrypy.config.update({
			'log.error_file': os.path.join(os.path.dirname(__file__), 'site.log'),
			'environment': 'production',
			})
	'''
	'''
	try:
		WSGIServer(application).run()
	finally:
		cherrypy.engine.stop()
	'''


if __name__ == "__main__":
	start()

